export default function () {
  return {
    title: [
      {required: true, message: '此项必填', trigger: 'blur'}
    ],
    profession: [
      {required: true, message: '此项必填', trigger: 'change'}
    ],
    duties: [
      {required: true, message: '此项必填', trigger: 'change'}
    ],
    rank: [
      {required: true, message: '此项必填', trigger: 'change'}
    ],
    'user.userInfo': [
      {required: true, message: '此项必填', trigger: 'blur'},
      {
        validator: (rule, value, resolve) => {
          setTimeout(() => {
            if (value.length <= 2) {
              resolve(new Error('长度必须大于3'))
              return
            }
            resolve()
          }, 500)
        },
        trigger: 'blur'
      }
    ]
  }
}
